package com.ygqh.customs.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 〈〉
 *
 * @author guohao
 * @date 2019/3/18 17:44
 * @since 1.0.0
 */
@Configuration
public class CustomsConfiguration {
    @Value("${yiigoo.ebpCode}")
    private String ebpCode;
    @Value("${yiigoo.payCodeWechat}")
    private String payCodeWechat;
    @Value("${yiigoo.recpAccountM}")
    private String recpAccountM;
    @Value("${yiigoo.recpAccountS}")
    private String recpAccountS;
    @Value("${yiigoo.keji.recpCode}")
    private String recpCode;
    @Value("${yiigoo.keji.recpName}")
    private String recpName;
    @Value("${yiigoo.localSignUrl}")
    private String localSignUrl;

    @Value("${yiigoo.customsDataUpUrl}")
    private String customsDataUpUrl;

    @Value("${yiigoo.certNo}")
    private String certNo;


    @Bean
    public CustomsConfig customsConfig() {
        return new CustomsConfig(ebpCode, payCodeWechat, recpAccountM, recpAccountS, recpCode, recpName, localSignUrl,customsDataUpUrl,certNo);
    }

}
